package com.yangyouli.unity_demo_server.controller;

import java.util.Date;

import com.yangyouli.unity_demo_server.annotation.ResponseClass;
import com.yangyouli.unity_demo_server.annotation.ResponseMethod;

@ResponseClass("generate")
public class GenerateController {
	
	/**
	 * 返回 data + "-" + 随机数种子，种子为当前时间戳的后 6 到 13位
	 * @param data
	 * @return
	 */
	@ResponseMethod("seed")
	public String seed (String data) {
		return data + "-" + String.valueOf(new Date().getTime()).substring(5, 13);
	}
}
